<div class="entries">
<?php
if (!empty($main_news)):
    echo $main_news;
    ?>
    <div style="text-align: center">
    <script type="text/javascript"><!--
    google_ad_client = "pub-3271531853567973";
    /* 728x90, под главной новостью */
    google_ad_slot = "7001022776";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </div>
    <?php
endif;

$i = 0; 
foreach ($list as $id => $news): 
    /* @var $row News */
    require 'news.tpl';
    if ($i++ == 2) {
        ?>
        <div style="text-align: center">
<script type="text/javascript"><!--
google_ad_client = "pub-3271531853567973";
/* 728x90, создано 13.02.10 */
google_ad_slot = "1232663343";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
        <hr />
        <?php
    }
endforeach; ?>
<div style="text-align: center">
            <script type="text/javascript"><!--
            google_ad_client = "pub-3271531853567973";
            /* 468x60, на списке новостей */
            google_ad_slot = "6306896049";
            google_ad_width = 468;
            google_ad_height = 60;
            //-->
            </script>
            <script type="text/javascript"
            src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
            </script>
        </div>
        <hr />
</div>
<?php echo $pager->display(); ?>
